.message-container {
  width: 100%;
  min-height: 100vh;
  background: #F2F2F6;
  overflow-x: hidden;
}

/* 顶部导航区域背景，保持与组织架构一致 */
.header-wrapper {
  width: 750px;
  height: 284px;
  background: #3F99F9;
  border-radius: 0px 0px 0px 0px;
  position: relative;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 40px 20px 20px;
  background: transparent;
  position: relative;

  .back-icon {
    width: 60px;
    height: 60px;
    font-size: 60px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 324px;
    height: 54px;
    font-family: 'Source Han Sans CN', 'Source Han Sans CN';
    font-weight: 500;
    font-size: 36px;
    color: #FFFFFF;
    text-align: center;
    font-style: normal;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .add-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      width: 48px;
      height: 48px;
    }
  }
}

.search-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 670px;
  height: 70px;
  background: #FFFFFF;
  border-radius: 10px 10px 10px 10px;
  display: flex;
  align-items: center;

  :deep(.van-search) {
    padding: 0;
    background: transparent;
    width: 100%;
    height: 100%;

    .van-search__content {
      background: transparent;
      border: none;
      border-radius: 0;
      height: 100%;
      display: flex;
      align-items: center;
      padding: 24px 0 23px 36px;

      .van-field__control {
        font-family: 'Source Han Sans CN';
        font-weight: 500;
        font-size: 28px;
        color: #333;
        background: transparent;
        border: none;
        height: auto;

        &::placeholder {
          font-family: 'Source Han Sans CN';
          font-weight: 500;
          font-size: 28px;
          color: #97999C;
        }
      }
    }

    .van-search__action {
      display: none;
    }

    .van-field__left-icon {
      margin-right: 15px;

      .van-icon {
        font-size: 28px;
        color: #97999C;
      }
    }
  }
}

.filter-bar {
  background: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.05);

  .count_length {
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 400;
    font-size: 26px;
    color: #666666;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }
}

.list-container {
  padding: 20px;
}

.message-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0px 8px 10px -4px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.message-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 标签通用样式与四种类型样式（按规格固定尺寸与圆角） */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 32px;
  line-height: 32px;
  border-radius: 30px;
  font-family: 'Source Han Sans CN', 'Source Han Sans CN';
  font-weight: 500;
  font-size: 24px;
}

.tag-urgent {
  background: #FFD9D9;
  color: #D91619;
}

.tag-important {
  background: #FEF9C3;
  color: #8B571B;
}

.tag-normal {
  background: #DBEAFE;
  color: #2764EB;
}

.tag-all {
  background: #F3F4F6;
  color: #6F7681;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.status {
  font-size: 26px;
  font-weight: 500;
}

.status-published {
  color: #208237;
}

.status-draft {
  color: #6C757D;
}

.status-revoked {
  color: #F5A623;
}

/* 通知模式的已读/未读状态样式（右侧显示） */
.status-read {
  color: #6C757D; /* 已读用较为中性的灰色 */
  font-size: 24px;
}

.status-unread {
  color: #D91619; /* 未读高亮为红色 */
  font-size: 24px;
}

.title-row {
  font-weight: bold;
  font-size: 30px;
  color: #171A1D;
  margin-bottom: 24px;
}

.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dept-date {
  font-weight: 400;
  font-size: 26px;
  color: #666666;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;

  .circle-btn {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    img {
      width: 56px;
      height: 56px;
    }
  }

  .disabled {
    opacity: 0.5;
  }
}

/* Vant 下拉样式微调 */
.filter-bar :deep(.van-dropdown-menu__bar) {
  box-shadow: none;
  height: 64px;
}

.filter-bar :deep(.van-dropdown-menu__title) {
  font-size: 26px;
}

.dropdown_menu_style :deep(.van-dropdown-menu__bar) {
  .van-dropdown-menu__item {
    padding-right: 28px !important;
  }
}

/* 新增公告弹窗样式 */
.add-dialog {
  width: 680px;
  padding: 48px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 12px;

  .add-dialog__header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 34px;

    .title {
      margin-top: 22px;
      font-weight: bold;
      font-size: 36px;
      color: #171A1D
    }
  }

  .add-dialog__body {
    .form-row {
      display: flex;
      gap: 12px;

      .half {
        flex: 1;
      }
    }

    .form-item {
      margin-bottom: 27px;

      .label {
        font-weight: 400;
        font-size: 28px;
        color: #333333;
        margin-bottom: 12px;

        .required {
          color: #f2323c;
        }
      }

      .upload_label {
        margin-bottom: 0 !important;
      }

      /* 输入框统一加边框与圆角，提升字号 */
      &:deep(.van-field) {
        border: 1px solid #E5E6EB;
        border-radius: 10px;
        padding: 8px 12px;
      }

      &:deep(.van-field__control) {
        font-size: 26px;
        color: #333333;
      }

      &:deep(.van-field__placeholder) {
        font-size: 26px;
        color: #97999C;
      }

      /* 文本域字数统计样式调整 */
      &:deep(.van-field__word-limit) {
        font-size: 22px;
        color: #97999C;
        margin-top: 8px;
      }

      .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        .chip {
          display: inline-flex;
          align-items: center;
          padding: 6px 14px;
          border-radius: 18px;
          border: 1px solid #dcdfe6;
          background: #fff;
          color: #333;
          font-size: 26px;
          cursor: pointer;
          transition: all 0.2s ease;

          &.active {
            border-color: #165dff;
            background: #e8f2ff;
            color: #165dff;
          }
        }
      }

      /* 上传附件：标签在左、加号在右、列表在下一行 */
      &.uploader-field {
        padding: 8px 0;

        /* 第一行：左侧标签、右侧加号（使用自定义按钮，避免覆盖组件内部加号定位） */
        .uploader-head {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 8px;
        }

        .label {
          line-height: 40px;
        }

        .uploader-add-btn {
          width: 40px;
          height: 40px;
          border: none;
          background: #fff;
          border-radius: 10px;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
        }

        .uploader-add-btn .van-icon {
          font-size: 40px;
          font-weight: 800;
          color: #969799;
        }

        /* 第二行开始：文件列表 */
        :deep(.van-uploader) {
          width: 100%;
          margin-top: 0;
        }

        :deep(.van-uploader__wrapper) {
          margin-top: 8px !important;
        }
      }
    }
  }

  .add-dialog__footer {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    .btn-cancel {
      width: 154px;
      height: 60px;
      background: #F4F4F5;
      border-radius: 10px;
      font-weight: 400;
      font-size: 26px;
      color: #333333;

      &:deep(.van-button__text) {
        color: #333333;
      }
    }

    .btn-submit {
      width: 154px;
      height: 60px;
      background: #2D67B0;
      border-radius: 10px;
      font-weight: 400;
      font-size: 26px;
      color: #FFFFFF;

      &:deep(.van-button__text) {
        color: #FFFFFF;
      }
    }
  }
}